package es.abredatos.client.event;

import com.google.gwt.event.shared.GwtEvent;

public class SearchBookEvent extends GwtEvent<SearchBookEventHandler> {

	public static Type<SearchBookEventHandler> TYPE = new Type<SearchBookEventHandler>();
	private String title;

	public SearchBookEvent(String title) {
		this.title = title;
	}

	public String getTitle() {
		return title;
	}

	@Override
	protected void dispatch(SearchBookEventHandler handler) {
		handler.onSearchBook(this);
	}

	@Override
	public Type<SearchBookEventHandler> getAssociatedType() {
		return TYPE;
	}

}
